﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI.WebControls ;

namespace CoolCode.Web.UI
{
    public abstract  class SpcField
    {
        public SpcField()
        {

        }
        public abstract  string[] Fields { get; set; }
    }

    //public enum FieldType
    //{
    //    HeaderTemplate,
    //    ItemTemplate
    //}

    public class TemplateSpcField:SpcField 
    {
        public GridView Parent { get; private set; }
        public DataControlRowType Type { get; private set; }

        public override string[] Fields
        {
            get;
            set;
        }

        public TemplateSpcField(GridView grid, DataControlRowType type, params  string[] fields)
        {
            this.Parent = grid;
            this.Type = type;
            this.Fields = fields;
        }


    }
}
